#include "critical_section_win.h"

namespace qb {

CriticalSectionWindows::CriticalSectionWindows() {
  InitializeCriticalSection(&crit);
}

CriticalSectionWindows::~CriticalSectionWindows() {
  DeleteCriticalSection(&crit);
}

void CriticalSectionWindows::Enter() { EnterCriticalSection(&crit); }

void CriticalSectionWindows::Leave() { LeaveCriticalSection(&crit); }

}  // namespace qb
